﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.html"/>
<body>
<#assign active='userList'/>
<#include "../include/common-top.html"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.html"/>
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-search">
                            <form role="form" class="form-inline clearfix" id="form" action="">
                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">学号</span>
                                    <input type="text" class="form-control" name="no" value="${no!}">
                                </div>
                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">姓名</span>
                                    <input type="text" class="form-control" name="name" value="${name!}">
                                </div>
                            </form>
                            <div class="form-tool btn-group">
                                <button class="btn btn-sm btn-success" form="form">
                                    <i class="icon-search"></i>搜索
                                </button>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>学号</th>
                                    <th>姓名</th>
                                    <th>邮箱</th>
                                    <th>电话</th>
                                    <th>性别</th>
                                    <th>身份证</th>
                                    <th>限制IP</th>
                                    <th>学院</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#list pageInfo.list as item>
                                <tr>
                                    <td>${item.no!}</td>
                                    <td>${item.name!'-'}</td>
                                    <td>${item.email!'-'}</td>
                                    <td>${item.phone!'-'}</td>
                                    <td>${(item.sex!0)?switch(0,'男',1,'女','-')}</td>
                                    <td>${item.idcard!'-'}</td>
                                    <td>${item.ip!'-'}</td>
                                    <td>${item.college!'-'}</td>
                                    <td>
                                        <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                            <a class="btn btn-xs btn-info" href="/user/detail/${item.id}">
                                                查看详情
                                            </a>

                                            <a class="btn btn-xs btn-success" href="/course/detail/${item.id}">
                                                查看课程表
                                            </a>

                                            <a class="btn btn-xs btn-danger" href="#" onclick="javascript:if(confirm('确定要删除该学生吗')){location.href='/user/del/${item.id}'}">
                                                删除学生
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                </#list>
                                </tbody>
                            </table>
                        <#include "../include/table-page.html"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<#include "../include/resource-script.html"/>

</html>

